package com.bwie.common.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @className: Product
 * @Description: TODO
 * @version: v1.８.0
 * @author: 刘茂锴
 * @date: 2025/10/2 10:22
 */
@Data
public class Product {

    //主键ID
    private Integer id;
    //商品名称
    private String name;
    //商品原价
    private BigDecimal originalPrice;
    //商品主图
    private String imageUrl;
    //商品图集(JSON数组)
    private String images;
    //商品描述
    private String description;
    //商品详情
    private String detail;
    //分类ID
    private Integer categoryId;
    //状态(0:下架,1:上架)
    private Integer status;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    //更新时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;


}
